/******************************************************************************/
/* @ All Rights Reserved Copyright (C) 2015 broada,Ltd.                       */
/*                                                                            */
/*  NAME      = ldap_base_data                                                */
/*  NOTE      =                                                               */
/*  DATE      = 2015/07/27 by geyh                                            */
/******************************************************************************/

#ifndef __LDAP_BASE_DATA_H_
#define __LDAP_BASE_DATA_H_

#include "conntrack.h"
#include "module.h"
#include"frbyte_buffer.h"
#include "frreport_comm.h"

#define         BIND_REQ                0x60
#define         BIND_RESP               0x61
#define         UNBIND_REQ              0x42
#define         SEARCH_REQ              0x63
#define         SERRCH_RES_ENTRY        0x64
#define         SEARCH_RES_DONE         0x65
#define         SEARCH_RES_REF          0x73
#define         MOD_REQ                 0x66
#define         MOD_RESP                0x67
#define         ADD_REQ                 0x68
#define         ADD_RESP                0x69
#define         DEL_REQ                 0x4a
#define         DEL_RESP                0x6b
#define         MOD_DN_REQ              0x6c
#define         MOD_DN_RESP             0x6d
#define         COM_REQ                 0x6e
#define         COM_RESP                0x6f
#define         ABAND_REQ               0x50
#define         EXT_REQ                 0x77
#define         EXT_RESP                0x78
#define         INT_RESP                0x79

typedef struct __st_L7session_ldap_private
{
    unsigned long ul_seq;                             /* 序列号，1次req和response时，使用同一个序列号 */
//    int i_data_len;                                    /* 数据长度 */
    Frreport_body_data *p_st_body_data_req;                          //数据  activeMQ req
    Frreport_body_data *p_st_body_data_resp;                         //数据  activeMQ resp
    L4_transaction st_l4_trans;                         /* 数据 */
    Frlist_header *p_lst_req_tmp;
    Frlist_header *p_lst_comm_tmp;
    Frbyte_Packet *p_st_data;
    char *p_title;
    int i_option;
    int i_flag_report;
    int i_scope;
    int i_mess_id;
    int i_ret_rows;
    int i_flag_data_type;
    char *p_user_name;
    struct timeval st_login_timestamp;
    char arr_session_id[APM_UUID_SIZE];

}L7session_ldap_private;

#endif
